package com.xnyzc.lhy.common.component.mapper;

import com.xnyzc.lhy.common.entity.PangClient;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 秘钥获取
 *
 * @author zhengxu
 */
public interface ClientMapper {
    /**
     * 获取客户端秘钥
     *
     * @param clientId
     * @return
     */
    @Select("select client_id clientId,client_secret clientSecurity,token_validity tokenValidity" +
            "        from oa_gateway_oauth_client" +
            "        where client_id = #{clientIdParam} and deleted=0")
    List<PangClient> getClientSecret(@Param("clientIdParam") String clientId);
}
